define('tesla-mobile', [ 'juicer' ], function(require, exports, module){

	var juicer = require("juicer"),
		Tesla = function() {
            this.BASE_PATH = "./../";
            this.SERVICE_PREFIX = "";
            this.TMPL_PATH = "tpl/";
            this.DEFAULT_CONTAINER_ID = "sys-container";
            this.COMPONENT_PACKAGE = "components/";
        },
        listener = new EventListener(),
        PAGE_SELECTOR = "[data-box]";

	Tesla.fn = Tesla.prototype = {
		BEFORE_LOAD		: "beforeLoad",
		AFTER_LOAD		: "afterLoad",
		CLOSED			: "closed",
		ERROR			: "error",
		REQUEST_SUCCESS : "requestSuccess",
		REQUEST_FAILED	: "requestFailed",
		CONFIG_RESOLVED : "configResolved"
	};
	
    Tesla.on = Tesla.prototype.on = function(name, callback) {
        listener.addListener(name, callback);
	};

	Tesla.off = Tesla.prototype.off = function(name, callback) {
		listener.removeListener(name, callback);
	};
	
	Tesla.emit = Tesla.prototype.emit = emit;
	
	function emit(name, data){
		listener.notifyListener(name, data);
	}
